<?php /* Smarty version Smarty-3.1.8, created on 2012-06-14 07:47:29
         compiled from "../includes/interface/templates\animal.tpl" */ ?>
<?php /*%%SmartyHeaderCode:235904fd98889a590d4-02496276%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '6f471e450ecbe567f3bd72db0f7ac9705ba756c7' => 
    array (
      0 => '../includes/interface/templates\\animal.tpl',
      1 => 1339659910,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '235904fd98889a590d4-02496276',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4fd98889cfa4a6_15440659',
  'variables' => 
  array (
    'groupe' => 0,
    'listeAnimaux' => 0,
    'record' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fd98889cfa4a6_15440659')) {function content_4fd98889cfa4a6_15440659($_smarty_tpl) {?><?php if (!is_callable('smarty_function_cycle')) include 'C:\\wamp\\www\\trunk\\includes\\interface\\smarty\\libs\\plugins\\function.cycle.php';
?>
<!-- PARTIE ANIMAL -->
  
<section id="content">
                    
	<h1 class="article"><?php echo $_smarty_tpl->getConfigVariable('ANIMAUX');?>
</h1>
    
        <div class="article buttons">
            <a id="animauxRechercher" href="?action=afficherRechercherAnimal">
                <span><?php echo $_smarty_tpl->getConfigVariable('RECHERCHER');?>
</span>
            </a>
            <a id="animauxAjouter" href="?action=afficherAjouterAnimal">
                <span><?php echo $_smarty_tpl->getConfigVariable('AJOUTER');?>
</span>
            </a>
        </div>
                    
        <h2 class="article"><?php echo $_smarty_tpl->getConfigVariable('DERNIER_ENREGISTREMENT');?>
</h2>
        
  	 <table class="article" id="tableauRecherche">
        <thead>
            <tr>
                <th width="20"><?php echo $_smarty_tpl->getConfigVariable('ID');?>
</th>
                <th width="70"><?php echo $_smarty_tpl->getConfigVariable('NOM');?>
</th>
                <th width="80"> <?php echo $_smarty_tpl->getConfigVariable('DEUXIEME_NOM');?>
</th>
                <th width="100"><?php echo $_smarty_tpl->getConfigVariable('TYPE_ANIMAL');?>
</th>
                <th width="70"><?php echo $_smarty_tpl->getConfigVariable('SEXE');?>
</th>
                <?php if ((isset($_smarty_tpl->tpl_vars['groupe']->value))&&($_smarty_tpl->tpl_vars['groupe']->value=='Super Administrateurs')){?>
                <th width="70"></th>
                <?php }?>
            </tr> 
        </thead>
        <tbody>
            <?php if (isset($_smarty_tpl->tpl_vars['listeAnimaux']->value)){?>
                <?php  $_smarty_tpl->tpl_vars['record'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['record']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['listeAnimaux']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
 $_smarty_tpl->tpl_vars['record']->iteration=0;
foreach ($_from as $_smarty_tpl->tpl_vars['record']->key => $_smarty_tpl->tpl_vars['record']->value){
$_smarty_tpl->tpl_vars['record']->_loop = true;
 $_smarty_tpl->tpl_vars['record']->iteration++;
?>
                <?php if ($_smarty_tpl->tpl_vars['record']->iteration==11){?>
                	<?php break 1?>
                <?php }else{ ?>
                    <tr class="<?php echo smarty_function_cycle(array('values'=>"ligne1,ligne2"),$_smarty_tpl);?>
">
                        <td><a href ="?action=afficherAnimal&id=<?php echo $_smarty_tpl->tpl_vars['record']->value->getId();?>
"><?php echo $_smarty_tpl->tpl_vars['record']->value->getId();?>
</a></td>
                        <td><?php echo $_smarty_tpl->tpl_vars['record']->value->getNom();?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['record']->value->getSecondNom();?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['record']->value->getTypeDeRace_nom();?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['record']->value->getSexe();?>
</td>
                        <?php if ((isset($_smarty_tpl->tpl_vars['groupe']->value))&&($_smarty_tpl->tpl_vars['groupe']->value=='Super Administrateurs')){?>
                        <td><a class="actions" href="?action=afficherSupprimerAnimal&id=<?php echo $_smarty_tpl->tpl_vars['record']->value->getId();?>
"><?php echo $_smarty_tpl->getConfigVariable('SUPPRIMER');?>
</a></td>
                        <?php }?>
                    </tr>
                <?php }?>
                <?php } ?>    
            <?php }?>     
        </tbody>  
     
</section><?php }} ?>